<?php
	require_once('../webroot/js/clsMsDocGenerator.php');
	$doc = new clsMsDocGenerator();
	
	$doc->setFontFamily('Arial');
	$doc->setFontSize('11');
	$doc->addParagraph('Ruta El Buen Trato - Informe Final',array('font-weight' => 'bold', 'text-align'=>'center', 'font-size' => '14pt'));	
	$doc->addParagraph('');
	
	if(!empty($informes)){
		foreach ($informes as $informe){
			$doc->addParagraph('Mes-A&ntilde;o: '.$informe['Informefinale']['mes_ano'],array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));		
			$doc->addParagraph('a. Actividades Preliminares:   '.$informe['Informefinale']['actividades_preliminares'],array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));
			$doc->addParagraph('b. Resultados Generales:  '.$informe['Informefinale']['resultados_generales'],array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));
			$doc->addParagraph('c. Conclusiones:  '.$informe['Informefinale']['conclusiones'],array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));
			$doc->addParagraph('d. Recomendaciones: '.$informe['Informefinale']['recomendaciones'],array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));
			$doc->addParagraph('');	
		}
	}else {
		$doc->addParagraph('');
		$doc->addParagraph('No hay Informe Mensual para este municpio');	
	 }
	$doc->output('Informe Final');
?>